﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SelectExperiment.aspx.cs" Inherits="Admin_SelectExperiment" Title="Untitled Page" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table cellpadding="0" cellspacing="0" width="100%">
  <tr>
     <td align="center" style="width:100%;">
         <table cellpadding="0" cellspacing="0" width="900">
         
  <tr >
      <td> 
          <uc1:Header ID="Header1" runat="server" />
      </td>
   </tr> 
                   
  <tr>
            <td align="left" >                  
                 <table cellpadding="2" cellspacing="0" width="100%" class="mainTableBkg">                    
                                <tr>
                                    <td colspan="2">
                                        <table >
                                            <tr>
                                                    <td class="adminHeading">Select the&nbsp; Experiment</td>
                                                    <td><asp:Label ID="lblMessage" CssClass="messageLabel" runat="server" ></asp:Label></td>
                                                    <td align="right"  ><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/EditReference.aspx">Go Back to Reference</asp:HyperLink> </td>
                                              </tr>
                                        </table>
                                    </td>                                   
                                </tr>                                                            
                                
                                <tr>                                       
                                
                                    <td colspan="2" valign="top" >
                                                <asp:GridView  Width="800px"  
                                                    AutoGenerateColumns="false" ID="dgExperiment" 
                                                    runat="server" onpageindexchanging="dgExperiment_PageIndexChanging" AllowPaging="True"  >
                                                    <Columns>   
                                                        <asp:HyperLinkField DataNavigateUrlFields="experiment_id" DataNavigateUrlFormatString="Material.aspx?experiment_id={0}"  Text="Update" />
                                                           
                                                   <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                                        <asp:BoundField  DataField="ExperimentName" HeaderText="Experiment Name"/>
                                                        <asp:BoundField  DataField="exp_summary" HeaderText="Summary"/>
                                                                                                     
                                                    </Columns>
                                                    <HeaderStyle CssClass="gridHeading" />
                                                    <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                                    <PagerSettings Position="Top" />
                                                    <RowStyle CssClass="gridRowStyle" />                                                                                       
                                                    <PagerStyle BorderStyle="Solid" />
                                                                                   
                                                </asp:GridView>
                                    </td>
                                </tr>     
                                
                                <tr id="trButton" runat="server" visible="false"  >
                                    <td>
                                        <table >
                                            <tr>
                                                <td>  
                                                
                                                    <asp:Button ID="btnAddExperiment" runat="server" Text="Add Experiment" 
                                                        CssClass="button" onclick="btnAddExperiment_Click1" />
                                                                                            
                                                </td>
                                              
                                            </tr>
                                        </table>
                                    </td>
                                </tr>               
                                 
               </table>  
            </td> 
  </tr>
  
  <tr>
  <td>
      <uc2:Footer ID="Footer1" runat="server" />
  </td>
  </tr>
  
  </table>  
  </td> 
  </tr>
  
</table>
</asp:Content>

